<hr />
<div style="float:left;">
<h2>Website Category</h2>
<table id="category_table">
	<tr><th>排序号</th><th>分类</th><th>国家代码</th><th>操作</th></tr>
	<#if categoryList?? && categoryList?size &gt; 0>
		<#list categoryList as cat>
		<tr>
			<td>${cat.sortIndex}</td><td>${cat.categoryName}</td><td>${cat.countryCode}</td>
			<td>				
				<a class="delete" href="javascript:;" catId="${cat.id}">删除</a>
			</td>
		</tr>
		</#list>
	<#else>
	<tr><td colspan="2">No Record</td></tr>
	</#if>
</table>
<br />
<form id="add_cat_form">
	排序: <input type="text" name="sortIndex" /><br />
	名称: <input type="text" name="categoryName" /><br />
	国家代码: <select name="countryCode">
		<#if countries??>
			<#list countries as ct>
				<option value="${ct.countryCode}">${ct.countryName}</option>
			</#list>
		</#if>
	</select>
	<input type="button" id="add_cat_btn" value="增加分类" />
</form>
</div>

<div style="float:left; border-left: 1px solid blue; padding: 10px; margin-left: 10px">
<h2>Website Country</h2>
<table id="country_table">
	<tr><th>国家名</th><th>标准国家码</th><th>操作</th></tr>
	<#if countries?? && countries?size &gt; 0>
		<#list countries as cc>
		<tr>
			<td>${cc.countryName}</td><td>${cc.countryCode}</td>
			<td>				
				<a class="delete" href="javascript:;" cId="${cc.id}">删除</a>
			</td>
		</tr>
		</#list>
	<#else>
	<tr><td colspan="2">No Record</td></tr>
	</#if>
</table>
<br />
<form id="add_country_form">	
	国家名称: <input type="text" name="countryName" /><br />
	国家代码: <input type="text" name="countryCode" /><br />
	<input type="button" id="add_country_btn" value="增加国家代码" />
</form>
</div>